<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link type="text/css" rel="stylesheet" href="http://localhost/company01/static/css/base.css"/>
    </head>
    <body style="padding:10px;">
        <div class="path">
            <strong>您现在的位置：</strong>
            <a href="http://localhost/company01/index.php/admin/model">查看模型</a>
        </div>
        <div class="send1">
            <a href="http://localhost/company01/index.php/admin/model/add_show"  class="current button1">添加模型</a>
        </div>
        <table class="table1">
            <thead>
                <tr>
                    <td width="30">排序</td>
                    <td width="30">mid</td>
                    <td>模型名称</td>
                    <td width="100">主表</td>
                    <td width="100">副表</td>
                    <td width="60">状态</td>
                    <td width="60">系统模型</td>
                    <td width="60">操作</td>
                </tr>
            </thead>
            <tbody>
                <?php if(!empty($model)){$listCount = count($model);$list_id=0;?><?php foreach($model as $key=>$v){?>
                    <tr>
                        <td><?php echo $v['sort'];?></td>
                        <td><?php echo $v['mid'];?></td>
                        <td><?php echo $v['title'];?></td>
                        <td><?php echo $v['ptable'];?></td>
                        <td><?php echo $v['stable'];?></td>
                        <td><?php if($v['state']==1){?>开启<?php  }else{ ?>关闭<?php }?></td>
                        <td><?php if($v['issystem']==1){?>是<?php  }else{ ?>否<?php }?></td>
                        <td width="200" style="font-size:12px;">
                            <a href="http://localhost/company01/index.php/admin/model/field/mid/<?php echo $v['mid'];?>/">字段管理</a> | 
                            <a href="http://localhost/company01/index.php/admin/model/edit_show/mid/<?php echo $v['mid'];?>">修改</a> | 
                            <a href="http://localhost/company01/index.php/admin/model/del/mid/<?php echo $v['mid'];?>">删除</a>
                        </td>
                    </tr>
                <?php $list_id+=1;?><?php }?><?php }?>
            </tbody>  
        </table>

    </body>
</html>
